package team.knowers.qzhserver.common.entity;

import cn.hutool.core.builder.EqualsBuilder;
import cn.hutool.core.builder.HashCodeBuilder;

import java.io.Serializable;

/**
 * 通用DTO类
 * @author xtg
 * @date 2024/1/19 15:48
 */
public class BaseDTO implements Serializable, Cloneable {
    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj, false);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this, false);
    }
}
